import request from "@/utils/request";
// 发送评论
export function sendComment(type, fromId, rootId, toCommentId, toCommentUserId, content) {
    return request({
        url: '/comment',
        method: 'post',
        headers: {
            isToken: true
        },
        data: { "fromId": fromId, "fromType": type, "rootId": rootId, "toCommentId": toCommentId, "toCommentUserId": toCommentUserId, "content": content }
    })
}
export function getComment(query) {
    return request({
        url: '/comment/list',
        method: 'get',
        headers: {
            isToken: false
        },
        params: query
    })
}